fix login issue