Making tests for login and lagout pass, generating pledge model and adding associations