fixed nullpointer
added basic auth
fixed basic auth not sending **** but real pass