added profile validation for frontend