apply login and register