ticket:2 Change the main activity; make it check if the user is authorized and proceed further if he is or display dialog if not