Dealing with invalid user error on front end