pep8, refactor, fix signup redirect