created error message for login
create profile function