Implements signing in.