fixed validation bug and user profile