bug fix for break-ing in login page