Added register and login functionality to the corresponding activities.