reorganize files for login in client. ref #32*