basic login with safemode working