Refactored login and issues to use docopt