Wrapped authentication methods in try/catch blocks to handle invalid inputs

@katowulf - I don't like it, but here it is...