write the login code with Dojo style