Sample code for moving between different views based on User Authentication