improve login feature