adds functionality on log in screen