Putting back in login helper for now until someone has time to make a more elegant solution