Move sign in helper and update syntax in views