Fixed some templating issues (incorrect links)

Also fixed login freeze
Added forgot password