Create login.js

Login now supports achievements, if user logins with a usename that does not exist, a new user is created.