Issue #005 Added sign in function

* added sign in and sign out
* changed some content around
* removed username and using email as unique name
* added some basic test for user log in