Add generic hook to login form