Validation

Added validation when creating a user and logging in.