added a function to login easily