add loginActivity and registerActivity