Updated create and login user for added type field in user table in db