added if-else block to show Sign Up/Sign In or Sign Out