Removed bug when entered wrong password.
Also moved to EJS templating