checks and corrections for creation of users, also here is password generator