Add login authentication as before_filter

issue #9 の実装。