fixed validation js routes/added sign in functionality