Changed login to accept hash instead of plain text password