added requirements and fixed bug in login