Bug in login fixed