Format @NonEmpty addded to User model instead of custom validation. Test
for index redirect to login added.