remove code that is made redundant by flask-login