Fix login backdoor for automated test

- Fix login backdoor for automated test with devise integration