Added canLogin to User Model