Added else: clause on edit_profile view