change login  to hashmap