[RAILS] Create log in and session functions
[Rails] Pass the integration test of log in and log out