Fixed login/register

login/register now works, validation added also