Refactor email & pw validation into user model