login frame and authenticate