User authentication improvements