Add Login test helper

Added a login test helper, so that we can expand on it later if we need to
without needing to change stuff in every file.