refined the inputs allowed for new user and login submission. however there are still bugs in this code needs further attention.