Add function login in admin