Adding functionality for login with Heroku