Refactor sign in validation, set up patient validation