optional URL parameters to set username and providername added
minor cleanup