Closes #8. Implemeted redirect to app if user is authenticated.