incorporating user class into loginactivity