added frontend auth