fixing bugs and finishing account crud functionality