added in login, logout actions and completed the controller and model te...

...sts