added login capability