Fixed login and registration urls in login.js