Added functionality to base app to register or login