Added login path and cleaned up pieces of code