More Integration tests and preliminary work on login