added schemas and finished login