This is the version with the login script and working registration script