Added some certain methods in User model for Flask-Login