corrected view function error in parent login