Splitted the application into login and user app.