login fixed

secure value checking added