Used function from authentication.py and changed error handling.
Used function from authentication.py and changed error handling.

alkadis/vcv,phihag/adhocracy,phihag/adhocracy,SysTheron/adhocracy,alkadis/vcv,phihag/adhocracy,DanielNeugebauer/adhocracy,SysTheron/adhocracy,DanielNeugebauer/adhocracy,phihag/adhocracy,DanielNeugebauer/adhocracy,liqd/adhocracy,alkadis/vcv,DanielNeugebauer/adhocracy,liqd/adhocracy,liqd/adhocracy,liqd/adhocracy,phihag/adhocracy,alkadis/vcv,SysTheron/adhocracy,alkadis/vcv,DanielNeugebauer/adhocracy