updates to client.c
added password verification