login functionality and sqlite database added