finally added login hooks to both graphics and console logins