#23 Nimrod,James cleaned up method to encode username and password