added interactive login
added checking for roles