log in using uid