Implemented redirect to LoginActivity if not logged in.
Added comment.