ghetto login function

Totally NOT happy with this function.
does not recognise duplicate username or udid.