Few changes in Authentiacation  branch

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