Fixed login security issue