fix applied to login function

prefix included twice in login query -- big fix