added login screen functionality