Fixed mapping on login and uses base.html now
Updated js file to actual post code beign used