added login and register connection to remote server, set login activity to be the entry point of app