I'm trying to write a login script and in it I need to be able to determin whether a new login name is already taken.
Is there some sort of predefined function that would allow me to do that? Alternatively I'd just have to query the db for the same exact login name and if found, I guess return an error.