logout user if tries to login with old credentials instead of getting error500