What factors to consider while taking a home loan