same error bug removed; credentials checking logic redeined; using decode functon to retrive and store btyea datatype