Use flask login, principal and bcrypt for user registration, login, logout, reset password