added login functionaility