Adding user signin check for search service call
Adding NoneType check for data

* checking for NoneType before stringifying data field
Optimizing search functionality

Now search method only searches for posts in groups which belongs to the user only.
Trying to get CORS running