Added methods to log in/out