added presence_of for email and password tests, modified user model