Bootstrap the login and register pages
Fix register view error when user with the same username was exists