included minor user/password checking for registration