refactor verify credentials and get home timeline into helper methods