fixed SSI sign in
implemented parsing SSI sign in response
fixed snprintf parameter size and memory leaks in other functions