an application for register and login