completed TODOs of adding in error checking for creating new user